package org.grow.wsing.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.time.LocalDateTime;

/**
 * @Author: xwg
 * @CreateDate: 2025/10/16
 */

@RestController
public class OneController {
    @GetMapping("/first")
    public String first(HttpServletRequest request) {
        String remoteHost = request.getRemoteHost();

        return LocalDateTime.now().toString() + "--111---"+remoteHost;
    }

    @GetMapping("/second")
    public String second() {
        return LocalDateTime.now().toString() + "--222";
    }
}
